package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_product")
public class ShopProduct extends Model<ShopProduct> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 静态化地址
     */
	private String name;
	private Date ctime;
	private Date mtime;
	private String description;
	private Boolean marketable;
	@TableField("brand_id")
	private Integer brandId;
	@TableField("product_category_id")
	private Integer productCategoryId;
    /**
     * 已勾选的属性id
     */
	@TableField("check_attribute_ids")
	private String checkAttributeIds;
    /**
     * 0 正常 1 冻结 2 已删除
     */
	private Integer status;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Boolean getMarketable() {
		return marketable;
	}

	public void setMarketable(Boolean marketable) {
		this.marketable = marketable;
	}

	public Integer getBrandId() {
		return brandId;
	}

	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}

	public Integer getProductCategoryId() {
		return productCategoryId;
	}

	public void setProductCategoryId(Integer productCategoryId) {
		this.productCategoryId = productCategoryId;
	}

	public String getCheckAttributeIds() {
		return checkAttributeIds;
	}

	public void setCheckAttributeIds(String checkAttributeIds) {
		this.checkAttributeIds = checkAttributeIds;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopProduct{" +
			"id=" + id +
			", name=" + name +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", description=" + description +
			", marketable=" + marketable +
			", brandId=" + brandId +
			", productCategoryId=" + productCategoryId +
			", checkAttributeIds=" + checkAttributeIds +
			", status=" + status +
			"}";
	}
}
